package com.yunfeng.learning.controller;

import com.yunfeng.learning.param.LoginParam;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;

public interface AuthenticationApi {
    @ApiOperation(value = "用户登陆")
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "登陆成功", response = String.class)
    })
    String login(@ApiParam(value = "登陆参数", required = true) LoginParam loginParam);

    @ApiOperation(value = "用户登出")
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "登出成功", response = String.class)
    })
    String logout(@ApiParam(value = "授权ID", required = true) String id);
}
